package com.challenge.smsservice.teachermanage.service.impl;

import com.challenge.smsbase.Service.impl.GenericManagerImpl;
import com.challenge.smsdao.teachermanage.dao.TeacherDao;
import com.challenge.smsdao.teachermanage.domain.Teacher;
import com.challenge.smsservice.teachermanage.service.TeacherManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * maboqi
 */
@Component
public class TeacherManagerImpl extends GenericManagerImpl<Teacher,Long> implements TeacherManager {

    TeacherDao teacherDao;  //声明DAO层对象

    /**
     * setTeacherDao
     * @param teacherDao
     */
    @Autowired
    public void setTeacherDao(TeacherDao teacherDao) {  //建立 DAO对象
        this.teacherDao = teacherDao;
        this.dao = this.teacherDao;
    }


}
